//------------------------------------------------------------------------------------------------------
// 入口
//------------------------------------------------------------------------------------------------------
// 新建全局变量Game，可用自定义子类继承GameBase
var Game = new GameBase();
// 监听引擎初始化
EventUtils.addEventListenerFunction(ClientWorld, ClientWorld.EVENT_INITED, () => {
    // to do
    AssetManager.loadAudio("asset/audio/bgm/（ENTP角色区）the_casino_120bpm.mp3", Callback.New(() => {
        // -- 如显示1号界面
        let gui = GameUI.show(1);
        // console.log(1);
        gui.on(EventObject.LOADED, this, () => {
            // console.log(gui.hasRootCommand);
            // console.log(2);
            if (gui.hasRootCommand[0]) {
                // console.log(3);
                GameCommand.startUICommand(gui, 0, gui.commandInputMessage);
            }
        });
    }, this),false,true);

}, null)